package 枚举类enum;

public class test {
    public static void main(String[] args) {
        //
        //A.Y = null;这样是错误的,Y相当于常量不能第二次赋值
        A a1 = A.X;
        A a2 = A.Y;
        A a3 = A.Z;
        System.out.println(a2.ordinal());
    }
}
